const defaultState = {
  test: '测试 - 测试',
  list: []
}


export const data = (state = defaultState, action) => {
  const { type, payload } = action

  switch (type) {
    case "changeDataTestAsync":
      return Object.assign(state, { test: payload })
      break;

    case "changeDataListAsync":
      return Object.assign(state, { list: payload })
      break;


    default:
      return state
      break;
  }
}
